import wx
import wx.adv

class Example(wx.Frame):
    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title)
        self.InitUI()
    def InitUI(self):
        menubar = wx.MenuBar()
        help = wx.Menu()
        help.Append(wx.ID_ANY, '&About')
        help.Bind(wx.EVT_MENU, self.OnAboutBox)
        menubar.Append(help, '&Help')
        self.SetMenuBar(menubar)
    def OnAboutBox(self, e):
        description = 'aaaaaaa'
        license = 'bbbbb'
        info = wx.adv.AboutDialogInfo()
        info.SetIcon(wx.Icon('../icon/hunter.png', wx.BITMAP_TYPE_PNG))
        info.SetName('File Hunter')
        info.SetVersion('1.0')
        info.SetDescription(description)
        info.SetCopyright('teddyxiong53')
        info.SetWebSite('https://github.com/teddyxiong53')
        info.SetLicence(license)
        info.AddDeveloper('teddyxiong53')
        wx.adv.AboutBox(info)

def main():
    app = wx.App()
    frame = Example(None, title='about dialog')
    frame.Show()
    app.MainLoop()

if __name__ == '__main__':
    main()
